import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const share: AppRouteRecordRaw = {
  path: '/share',
  name: 'share',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '分享中心',
    requiresAuth: true,
    icon: 'icon-share-internal',
    order: 8,
  },
  children: [
    {
      path: 'shareOption',
      name: 'shareOption',
      component: () => import('@/views/share/index.vue'),
      meta: {
        locale: '分享操作',
        requiresAuth: true,
        icon: 'icon-share-alt',
        roles: ['*'],
      },
    },
  ],
};

export default share;
